#@datagrid()
#define content_header()
<h1>
    <a href="/middleman/childagent?top_agent_id=#(top_agent_id)">居间商管理</a>
    <small>agency tables</small>
</h1>
<ol class="breadcrumb">
    <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
    <li><a href="/agency/">代理</a></li>
    <li><a href="/middleman/">居间商管理</a></li>
    <li class="active"><a href="/middleman/childagent?top_agent_id=#(top_agent_id)">下线代理</a></li>
</ol>
#end
#define content()
<div class="box">
    <div class="box-header">

        <!-- 个人信息 -->
        #include("_agencyinfopart.html")

        <!-- 选项卡 -->
        #set(tabid="tabchildagent")
        #include("_subpage_navtabs.html")
        <!-- search -->
        #set(formaction="childagent")
        #include("_searchform.html")
    </div>
    <!-- /.box-header -->
    <div class="box-body">
        <table class="xsui-datagrid table table-condensed table-bordered table-striped table-hover">
            <thead>
                <tr>
                    <th>代理ID</th>
                    <th>会员名</th>
                    <th>账户余额</th>
                    <th>今日收入总额</th>
                    <th>累计收入金额</th>
                    <th>今日提现金额</th>
                    <th>累计提现金额</th>
                    <th>今日充值金额</th>
                    <th>累计充值金额</th>
                    <th>今日消费金额</th>
                    <th>累计消费金额</th>
                    <th>下级代理数量</th>
                </tr>
            </thead>
            <tbody>
                #for(x : listPage.getList())
                <tr data-key="#(x.user_id)">
                    <td>#(x.user_id)</td>
                    <td>#(x.nickname)</td>
                    <td>#(x.blance)</td>
                    <td title="今日收入总额">#(x.income_amount_today)</td>
                    <td title="累计收入金额">#(x.income_amount_total)</td>
                    <td title="今日提现金额">#(x.withdraw_amount_today)</td>
                    <td title="累计提现金额">#(x.withdraw_amount_total)</td>
                    <td title="今日充值金额">#(x.recharge_amount_today)</td>
                    <td title="累计充值金额">#(x.recharge_amount_total)</td>
                    <td>0</td>
                    <td>0</td>
                    <td>#(x.child_agent_count)</td>
                </tr>
                #end
            </tbody>
        </table>
        <!--分页条-->
        #include("_pagination.html")
    </div>
    <!-- /.box-body -->
</div>
<!-- /.box -->
#end